package cate.game.role.pvp.eliterace.vo;

import cate.game.pvp.eliterace.data.EliteRaceBetRecord;
import easy.java.dev.note.NoteField;
import lombok.Data;

@Data
public class EliteRaceBetRdVO {
    @NoteField(value = "A方支持率")
    public float sxA;
    @NoteField(value = "B方支持率")
    public float sxB;
    @NoteField(value = "A方赔率")
    public float pxA;
    @NoteField(value = "B方赔率")
    public float pxB;

    public static EliteRaceBetRdVO of(EliteRaceBetRecord record) {
        EliteRaceBetRdVO rd = new EliteRaceBetRdVO();
        rd.setSxA(record.getSxA());
        rd.setSxB(record.getSxB());
        rd.setPxA(record.getPxA());
        rd.setPxB(record.getPxB());
        return rd;
    }
}
